#!/bin/bash

global_var="I'm global"

my_function() {
  local local_var="I'm local"
  echo "Inside function:"
  echo "Global variable: $global_var"
  echo "Local variable: $local_var"
}

my_function

echo "Outside function:"
echo "Global variable: $global_var"
echo "Local variable: $local_var"
